//mui初始化
mui.init({
	swipeBack: true //启用右滑关闭功能
});
var clipboard = new Clipboard('.fuzhi');

clipboard.on('success', function(e) {
    e.clearSelection();
   mui.toast('复制成功');
});

clipboard.on('error', function(e) {
	 mui.toast('复制失败');
});

/*-------------------总金额-------------------*/
/*function getSumPrice(){
	var aShopWrap = $('.shopWrap');
	var sumPrice = 0;
	for(var i = 0,len = aShopWrap.length;i < len;i ++){
		var singlePrice = parseInt(aShopWrap.eq(i).find('.singlePrice').html());
		var goodsNum = parseInt(aShopWrap.eq(i).find('.goodsNum').html());
		sumPrice += singlePrice*goodsNum;
	}
	$('.goodsSumPrice').html(sumPrice);
}
getSumPrice();*/

/*-----------------------提交订单-----------------------*/
$('.submitBtn').on('click',function(){
	$('.shoppingCarTip').show();
	$('.shoppingCarTipBg').show();
})
$('.shoppingCarTipCancel').on('click',function(){
	//取消付款
	$('.shoppingCarTip').hide();
	$('.shoppingCarTipBg').hide();
})
$('.shoppingCarTipSubmit').on('click',function(){
	//确认提交
	$('form').submit();
})